package com.gluck.cases.core.block;

import com.gluck.cases.core.modal.dto.RoleDTO;
import com.gluck.cases.core.modal.entity.Role;

import java.util.List;

/**
 * @ClassName RoleBlock
 * @Desc RoleBlock
 * @Author I am Gluck
 * @Date 2022/5/17 - 7:48 下午
 **/
public interface RoleBlock {

    List<Role> findAdminRoleByUsername(String username);

    Role addRole(RoleDTO roleDTO);

    Role updateRole(RoleDTO roleDTO);

    Integer deleteRole(RoleDTO roleDTO);
}
